﻿/*
 * Author:  hammercui
 * CreateTime: 2018/10/8 16:03:39
 * Module:
 * 主要功能：wrapper枚举
 *
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MGAudioEngine
{
    public  enum WrapperFuction
    {
        init,
        authentication,
        joinRoom,
        quitRoom,
        createRoom,
        joinChannel,
        reJionRoom,
        sendChannelTextMessage,
        openMic,
        closeMic,
        openSpeaker,
        closeSpeaker,
        destroy,
        getIsConnect,
        getMessage
    }


    public class PollMsg
    {
        public const char SpeakState = '0';
        public const char SpeakInfo = '1';
        public const char UserJoinedChannel = '2';
        public const char ChatMessage = '3';
        public const char AudioState = '4';
        public const char JoinRoomSucc = '5';
        public const char InfoMessage = '6';
    }

    /// <summary>
    /// 系统消息类型
    /// </summary>
    public enum Type
    {
        INFO,
        WARNING,
        ERROR
    }

    public enum AudioState
    {
        CONNECTION_LOST, //连接丢失
        DISCONNECTED, //连接已被销毁
        JION_ROOM_FAILURE, //加入房间失败
        CREATE_ROOM_FAILURE, //创建房间失败
        NOT_FIND_ROOM, //未找到房间
        UNAUTETHENTICATION, //未认证
        AUTETHENTICATED //已认证
    }

    public enum TalkState
    {
        /// <summary>
        /// 小声说话
        /// </summary>
        TALKING,
        /// <summary>
        /// 大声说话
        /// </summary>
        SHOUTING,
        /// <summary>
        /// 只听不说
        /// </summary>
        PASSIVE,
        /// <summary>
        /// 默认
        /// </summary>
        WHISPERING
    }
}


